home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 25 / CU Amiga Magazine's Super CD-ROM 25 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-08].iso / CUCD / Programming / GMS / GMSDev / Includes / files / segments.i < prev   
Encoding:
Text File  |  1998-03-15  |  925 b   |  39 lines

  1.     IFND FILES_SEGMENTS_I
  2. FILES_SEGMENTS_I  SET  1
  3.  
  4. **
  5. **    $VER: segments.i V1.0
  6. **
  7. **    Segment Definitions.
  8. **
  9. **    (C) Copyright 1996-1998 DreamWorld Productions.
  10. **        All Rights Reserved
  11. **
  12.  
  13.     IFND    DPKERNEL_I
  14.     include 'dpkernel/dpkernel.i'
  15.     ENDC
  16.  
  17. ****************************************************************************
  18. * Segment object.
  19.  
  20. SEGVERSION   = 1
  21. TAGS_SEGMENT = (ID_SPCTAGS<<16)|ID_SEGMENT
  22.  
  23.    STRUCTURE    SEG,HEAD_SIZEOF  ;Standard header.
  24.     APTR    SEG_Prev         ;Previous segment.
  25.     APTR    SEG_Next         ;Next segment.
  26.     LONG    SEG_MemType      ;Memory type (eg MEM_DATA).
  27.     APTR    SEG_Address      ;Pointer to segment start.
  28.     APTR    SEG_Source       ;Source of segment (NB: FileName only).
  29.     WORD    SEG_CPU          ;The CPU type.
  30.  
  31. SGA_Address = (TAPTR|SEG_Address)
  32. SGA_MemType = (TAPTR|SEG_MemType)
  33. SGA_Next    = (TAPTR|SEG_Next)
  34. SGA_Prev    = (TAPTR|SEG_Prev)
  35. SGA_Source  = (TAPTR|SEG_Source)
  36.  
  37.   ENDC    ;FILES_SEGMENTS_I
  38.  
  39.